Micro-Max (chess engine)

Micro-Max
Developer(s) H.G. Muller
Stable release 4 / January 26, 2007[1]
Operating system Windows
Type Chess engine
Website Micro-Max Main Page

Micro-Max (ยต-Max) is a chess engine developed by Dutch H.G. Muller, born in 1956. The program is written in C and according to IOCCC rules it is 1088 characters, not counting ; { } nor leading spaces and line feeds. The author claims that it is the smallest non-trivial chess engine in existence.

The source code for Micro-Max and other chess variant engines is available.[2]

Contents

Versions

Source code sample

main()
{
 int k=8,*p,c[9],d;
 
 F(X,0,8)
 {b[X+V]=(b[X]+=16)-8;b[X+16]=18;b[X+96]=9;
  F(Y,0,8)b[16*Y+X+8]=(X-4)*(X-4)+(Y-3.5)*(Y-3.5);
 }
 
 W(1)
 {F(N,0,121)printf(" %c",N&8&&(N+=7)?10:n[b[N]&15]);
  p=c;W((*p++=getchar())>10);
  if(*c-10){X=*c-16*c[1]+C;Y=c[2]-16*c[3]+C;}else
  {d=6;N=0;W(N<1e6)D(k,-I,I,Q,8,d++);}
  if(D(k,-I,I,Q,9,2)==I)k^=24;
 }
}

References

External links